import numpy as np

speed = [0, 1]
dire = [0.1, -1]

# 计算夹角
angle = np.arccos(np.dot(speed, dire) / (np.linalg.norm(speed) * np.linalg.norm(dire))) * 180 / np.pi

print(angle)